import { connect } from "react-redux";
import { getList ,addToCart} from "../actions";
import {Product} from "../components"

const mapStateToProps = state => {
  //4.将仓库里state转化为props，组件间数据传递只能通过props
  return {
    lists: state.product.lists,
    boo  : state.login,
  };
};



export default connect(
  mapStateToProps,
  { getList,addToCart }
)(Product);